package com.qf.controller;

import com.qf.pojo.Details;
import com.qf.pojo.Dog;
import com.qf.service.DogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DogController {
    @Autowired
    DogService dogService;
    @RequestMapping("/findAll")
    public List<Dog> findAll(){
        return dogService.findAll();
    }
}
